package com.zxp.rmi.service.impl;

import com.zxp.rmi.service.HelloRegistryFacade;
import lombok.extern.slf4j.Slf4j;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author zxp
 * @date 2021-08-23 10:27
 */
@Slf4j
public class HelloRmiServiceImpl extends UnicastRemoteObject implements HelloRegistryFacade {

    public HelloRmiServiceImpl() throws RemoteException {
        super();
    }

    @Override
    public String hello(String name) {
        return name+" say RMI!";
    }
}
